package com.test.designPattern.ch25;

/**
 * @ClassName ComputerPartDisplayVisitor
 * @Description TODO
 * @Author 维康
 * @Date 2018/6/13 14:20
 * @Version 1.0
 **/
public class ComputerPartDisplayVisitor implements ComputerPartVisitor {
    @Override
    public void visit(Computer computer) {
        System.out.println("Displaying Computer.");
    }

    @Override
    public void visit(Mouse mouse) {
        System.out.println("Displaying Mouse.");
    }

    @Override
    public void visit(Keyboard keyboard) {
        System.out.println("Displaying Keyboard.");
    }

    @Override
    public void visit(Monitor monitor) {
        System.out.println("Displaying Monitor.");
    }
}
